package com.recsmile.sgs.client.commonds.sync;

import com.recsmile.sgs.client.commonds.GeneralGameUIClientCommand;
import com.recsmile.sgs.client.entity.Hero;
import com.recsmile.sgs.client.entity.InvalidPlayerCommandException;
import com.recsmile.sgs.client.ui.components.GamePanel;

public class SyncAttackUsedGameUIClientCommand extends GeneralGameUIClientCommand {

	private static final long serialVersionUID = 7306926860771153864L;

	@Override
	protected void execute(GamePanel<? extends Hero> panel) {
		try {
			panel.getContent().getSelf().useAttack();
		} catch (InvalidPlayerCommandException e) {
			e.printStackTrace();
		}
	}

}